﻿using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.Text;
using Renci.iRods.Common;
using Renci.iRods.Data;


namespace Renci.iRods.Linq
{
    public class PgSqlFormatter : IRodsQueryFormatter
    {
        private PgSqlFormatter()
            : base()
        {
        }

        public static IRodsQuery Format(Expression expression)
        {
            PgSqlFormatter formatter = new PgSqlFormatter();
            formatter.Visit(expression);
            return formatter.IRodsQuery;
        }
    }
}
